# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="py3-yara"
_pkgname="${pkgname/py3-/}-python"
pkgver=4.0.2
pkgrel=0
pkgdesc="The Python interface for YARA"
url="https://virustotal.github.io/yara/"
arch="all !armv7 !armhf" # missing yara
license="Apache-2.0"
depends="python3"
makedepends="python3-dev yara py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/yara-python/archive/v$pkgver.tar.gz
	use-system-yara.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0c599f529d11a1ecc006f2db958efbbe6b43669f0721b941f4a46d68d75a1e15418075dccb229c498dd39f651f58392d7c7c4b5c62ef694cbddbf05c609301d3  py3-yara-4.0.2.tar.gz
d56d2c437f66b0d3c5bc92737f6b5c7bf5191e38fe4f72849145dbcbc2eb7d9cad10a2d07674c25aaa1e7f542b21e723c30722516e722db5c238840e4f6be07a  use-system-yara.patch"
